<%@ page import="java.util.List" %>
<%@ page import="PoJo.Students" %><%--
  Created by IntelliJ IDEA.
  User: Distance
  Date: 2021/10/17
  Time: 21:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
       <%
           List<Students> list = (List<Students>) request.getAttribute("stuList");

       %>
<table>

     <%   for(Students stu : list ){%>
    <tr>
        <td>  <%=stu.getName()%> </td>
        <td>  <%=stu.getId()%></td>
    </tr>
<%}%>
</table>
</body>
</html>
